[ATN] Add Thunderbird Add-ons badges#11946
Draft
LuxologyGG wants to merge 2 commits into
Draft
Conversation
Contributor
|
Implement users, rating, stars, version, and weekly downloads badges for Mozilla Thunderbird extensions via the ATN v3 API, mirroring the existing AMO service pattern. Closes badges#6994
4e6707c to
d5d2fdb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6994
Summary
Adds shields.io badges for Mozilla Thunderbird extensions via the addons.thunderbird.net (ATN) v3 API, following the same pattern as the existing AMO (Firefox add-ons) services.
New badges
/atn/users/:addonId/atn/rating/:addonId4.8/5)/atn/stars/:addonId/atn/v/:addonId/atn/dw/:addonIdExample
API rate limits
The ATN API is based on the Mozilla addons-server infrastructure. The addons-server API overview does not publish explicit per-endpoint rate limits for read-only addon metadata requests. Throttled requests return HTTP 429. This badge issues one GET per render to
https://addons.thunderbird.net/api/v3/addons/addon/{addonId}/.Checklist
services/atn/)services/atn/atn.service.spec.js)services/atn/*.tester.js)npm run lint(0 errors)Testing
npm run test:core -- --grep ATNnpm run test:services -- --only=AtnUsers,AtnRating,AtnVersion,AtnWeeklyDownloads